# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 3.10.1-0-g8feb16b3)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc


###########################################################################
## Class URLPanel
###########################################################################

class URLPanel(wx.Panel):

    def __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.Size(1000, 400), style=wx.TAB_TRAVERSAL,
                 name=wx.EmptyString):
        wx.Panel.__init__(self, parent, id=id, pos=pos, size=size, style=style, name=name)

        bSizer36 = wx.BoxSizer(wx.VERTICAL)

        self.edit_input = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.Size(-1, 180),
                                      wx.TE_MULTILINE)
        bSizer36.Add(self.edit_input, 0, wx.ALL | wx.EXPAND, 5)

        bSizer38 = wx.BoxSizer(wx.HORIZONTAL)

        self.m_button23 = wx.Button(self, wx.ID_ANY, u"UrlEncode编码", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer38.Add(self.m_button23, 0, wx.ALL, 5)

        self.m_button24 = wx.Button(self, wx.ID_ANY, u"UrlDecode解码", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer38.Add(self.m_button24, 0, wx.ALL, 5)

        self.m_button25 = wx.Button(self, wx.ID_ANY, u"清空", wx.DefaultPosition, wx.DefaultSize, 0)
        bSizer38.Add(self.m_button25, 0, wx.ALL, 5)

        bSizer36.Add(bSizer38, 0, wx.EXPAND, 5)

        self.edit_result = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize,
                                       wx.TE_MULTILINE)
        bSizer36.Add(self.edit_result, 1, wx.ALL | wx.EXPAND, 5)

        self.SetSizer(bSizer36)
        self.Layout()

        # Connect Events
        self.m_button23.Bind(wx.EVT_BUTTON, self.encode)
        self.m_button24.Bind(wx.EVT_BUTTON, self.decode)
        self.m_button25.Bind(wx.EVT_BUTTON, self.clear_input)

    def __del__(self):
        pass

    # Virtual event handlers, override them in your derived class
    def encode(self, event):
        event.Skip()

    def decode(self, event):
        event.Skip()

    def clear_input(self, event):
        event.Skip()
